{!! Html::style(env("APP_URL").'/assets/backend/libs/css/store-dashboard.css') !!}

<div id="summary-content" class="col-lg-12">
    <div class="today-sales row">
        <div class="title">
            今日实时销售
        </div>
        <div class="sales-detail">
            <div class="col-sm-3 detail-item bor-r">
                <div class="num yellow">{{$baseData['total_amount']}}</div>
                <div class="text">今日销售额（元）</div>
            </div>
            <div class="col-sm-3 detail-item bor-r">
                <div class="num yellow">{{$baseData['grossProfit']}}</div>
                <div class="text">今日销售毛利（元）</div>
            </div>
            <div class="col-sm-2 detail-item">
                <div class="num red">{{$baseData['quantity']}}</div>
                <div class="text">今日销售件数</div>
            </div>
            <div class="col-sm-2 detail-item">
                <div class="num red">{{$baseData['count']}}</div>
                <div class="text">今日销售笔数</div>
            </div>
            <div class="col-sm-2 detail-item">
                <div class="num red">{{$baseData['userCount']}}</div>
                <div class="text">今日新增会员</div>
            </div>
        </div>
    </div>

    <div class="seven-income row">
        <div class="col-lg-5 seven-content">
            <div class="order col-sm-6">
                <div class="much-order clearfix" style="padding: 6px 26px 5px 14px">
                    <span class="info-l pull-left">销售周期</span>
                    <span class="info-r pull-right">
                        <select class="form-control" id="season_select">
                            @foreach($seasons as $key=>$season)
                                <option value="{{$key}}" {{$currentKey==$key?'selected':''}}>{{$season}}</option>
                            @endforeach
                        </select>
                    </span>
                </div>
                <div class="detail-order">
                    <div class="order-num" id="order-week">{{$salesCycle}}周</div>
                    <div class="order-text" id="order-text">库存金额：{{$stockData['purchaseAmount']}}元</div>
                </div>
            </div>
            <div class="order col-sm-6">
                <div class="much-order clearfix">
                    <span class="info-l pull-left">7天销售</span>
                    <span class="info-r pull-right">元</span>
                </div>
                <div class="detail-order">
                    <div class="order-num">{{$sevTotal}}</div>
                    <div class="order-text">今日销售：{{$total}} 元</div>
                </div>
            </div>
        </div>
        <div class="col-lg-7 order-tendency">
            <div class="much-order clearfix">
                <span class="info-l pull-left">7天销售额</span>
                <span class="info-r pull-right">元</span>
            </div>
            <div id="main-seven" style="width: 100%;height:190px">
            </div>
        </div>
    </div>


    <div class="transaction-summary row">
        <div class="transaction-content">
            <div class="much-order clearfix">
                <span class="info-l pull-left">交易汇总</span>
                <span class="info-r pull-right radiu-d" id="Tday">日</span>
                <span class="info-r pull-right radiu-m active" id="Tmonth">月</span>
            </div>
            <div id="main-money" style="width: 100%;height:400px"></div>
        </div>
    </div>
    <div class="use-growth row">
        <div class="growth-content">
            <div class="much-order clearfix">
                <span class="info-l pull-left">用户增长数</span>
                <span class="info-r pull-right radiu-d" id="Gday">日</span>
                <span class="info-r pull-right radiu-m active" id="Gmonth">月</span>
            </div>
            <div id="main-growth" style="width: 100%;height:400px;">

            </div>
        </div>

    </div>
</div>

{!! Html::script('https://cdnjs.cloudflare.com/ajax/libs/echarts/4.1.0/echarts.js') !!}
@include('shop-backend::dashboard.script')